<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class Msg_update extends CI_Controller {

	function __construct()
	{
		parent::__construct();
	}

	public function index()
	{
		$this->load->helper('date');
		$this->load->helper('url');
		$this->load->model('messagedata_m');
		$data=array(
			'title'=>$_POST['title'],
			'username'=>$_POST['user'],
			'message'=>$_POST['msg'].'<br/>用户于'.date("Y-m-d H:i:s").'编辑',
			'time'=>date("Y-m-d H:i:s"),
			'readauth'=>1
			);					
			$this->messagedata_m->msg_update($_GET['id'],$data);
			redirect('?count='.$_GET['count'],'refresh');	
	}

}
?>